#define _CRT_SECURE_NO_WARNINGS 1
bool canPermutePalindrome(char* s) {
    int hash[128] = { 0 };
    int len = strlen(s);
    int count = 0;
    for (int i = 0; i < len; i++)
    {
        hash[s[i]]++;
    }
    for (int i = 0; i < 128; i++)
    {
        if (hash[i] % 2 == 1)
        {
            count++;
        }
    }
    if (count > 1)
    {
        return false;
    }
    return true;
}